import { observable, action, toJS } from 'mobx';
import {WeaLocaleProvider} from 'ecCom';
import { message } from 'antd';
import * as API from "../../apis/task/taskExecl";
const getLabel = WeaLocaleProvider.getLabel;
export default class TaskImportStore {
    @observable loading = false;
    @observable reslutData = {};
    @observable ifupload = true;

    importTask(params){
        this.loading = true;
        this.ifupload = false;
        API.importTask(params).then(action(res => {
            this.reslutData = res;
            this.ifupload = true;
            this.loading = false;
        }))
    }
}